(function ($) {
    $(function () {
        //所有具有kaptcha样式的图片 点击切换验证码
        $(document).on("click", "img.kaptcha", function () {
            $(this).attr("src", $(this).attr("src"));
        });
    });
    $(window).on('resize.auto_container', function () {
        var height = $(this).height();
        var maxHeight = height - 86 - 64 - 32;
        $("#page-content").height(maxHeight);
    }).triggerHandler('resize.auto_container');
    $.checkStartChar = function (value) {
        if (!value){
            return false;
        }
        var chr = value.substr(0,1);
        return  /^[A-Za-z]*$/.test(chr);
    }
})(jQuery);
